from typing import Union

from pydantic import BaseModel


class DemoParam(BaseModel):
    """
    请求体参数的类型
    """
    user_name:str
    age: int
    city: Union[str,None]